﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class GirlAnim : MonoBehaviour
{
        // Start is called before the first frame update
        bool isHelloed = false;

        Animator girlAnimator;

        float helloTime = 0;
        bool helloing;

        void Start()
        {
                girlAnimator = this.GetComponent<Animator>();
        }

        // Update is called once per frame
        void Update()
        {
        /*
                if (isHelloed != fts.isGetTCPPort)
                {
                        isHelloed = fts.isGetTCPPort;
                        helloing = true;
                        girlAnimator.SetBool("isHello", helloing);
                }
        */
                if (isHelloed && helloing)
                {
                        helloTime += Time.deltaTime;
                        if (helloTime > 2f)
                        {
                                helloing = false;
                                girlAnimator.SetBool("isHello", helloing);
                        }
                }
        }
}
